using System;
using CStock;
using TestCases.StockData;
using NUnit.Framework;
using System.Diagnostics;
namespace TestCases.Web
{
	/// <summary>
	/// Summary description for WebDownloadTest.
	/// </summary>
	[TestFixture]
    public class WebDownloadYahoo_Test : ProgramContext_TestCases 
	{
        public WebDownloadYahoo_Test()
		{
			
		}
        [Test]
        public void Test_Connection()
        {
            WebYahoo dfh = new WebYahoo();
            Assert.True(dfh.TestConnect());
        }
        [Test]
        public void Test_MSFT_Occurance()
        {
            WebYahoo dfh = new WebYahoo();
            IDataItem mydi = new DataItem();
            mydi.Symbol = "MSFT";
            dfh.DoValidation(mydi);
        }
        [Test] 
	    public void Download_MSFT()
		{
            WebYahoo dfh = new WebYahoo();
            IDataItem mydi = new DataItem();
            mydi.Symbol = "MSFT";      
            dfh.GetTimeSeriesFromYahoo_SingleShare(mydi,this.programContext.Configuration.Dates.DateMinWebupdate, true);	
		}
		
	}
}
